﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Login.ascx.cs" Inherits="Admin_Parts_Login" %>

    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
    <asp:Login ID="Login1" runat="server" onloggingin="Login1_LoggingIn" 
            LoginButtonText="Đăng nhập" PasswordLabelText="Mật khẩu:" 
            RememberMeText="Nhớ tài khoản trong lần tiếp" TitleText="Đăng nhập" 
            UserNameLabelText="Tên tài khoản:" BorderColor="White" BorderPadding="2" 
            BorderStyle="Outset" BorderWidth="0" Width="335px">
        <LayoutTemplate>
            <table cellpadding="2" cellspacing="0" style="border-collapse:collapse;">
                <tr>
                    <td>
                        <table cellpadding="0" style="width:330px;">                        
                            <tr>
                                <td align="center" colspan="2" style="color:Red;">
                                    <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                </td>
                            </tr>

                            <tr>
                                <td align="right">   
                                    <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Tên tài khoản:</asp:Label>
                                </td>
                                <td valign="top">
                                    <asp:TextBox ID="UserName" runat="server" CssClass="text-input"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                        ControlToValidate="UserName" ErrorMessage="User Name is required." 
                                        ToolTip="User Name is required." ValidationGroup="ctl00$Login1">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Mật khẩu:</asp:Label>
                                </td>
                                <td valign="top">
                                    <asp:TextBox ID="Password" runat="server" TextMode="Password" CssClass="text-input"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                                        ControlToValidate="Password" ErrorMessage="Password is required." 
                                        ToolTip="Password is required." ValidationGroup="ctl00$Login1">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" align="right" style="clear:both;">
                                <p id="rememberpass">
                                    <asp:CheckBox ID="RememberMe" runat="server" Text="Ghi nhớ mật khẩu" />
                                </p>
                                </td>
                            </tr>
                        
                            <tr>
                                <td align="right" colspan="2">
                                    <asp:Button ID="LoginButton" runat="server" CommandName="Login" 
                                        Text="Đăng nhập" ValidationGroup="ctl00$Login1" CssClass="button" 
                                        Width="100px" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </LayoutTemplate>
    </asp:Login>             
